package com.lazyboyl.big.data.read.controller;

import com.lazyboyl.big.data.read.service.BigDataReadService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author linzf
 * @since 2021-08-02
 * 类描述：超大文本数据读取的实现
 */
@RestController
public class BigDataReadController {

    @Resource
    private BigDataReadService bigDataReadService;

    /**
     * 功能描述： 模拟实现擦好大文件的解析
     *
     * @return 返回处理结果
     */
    @GetMapping("readBigData")
    public Map<String, Object> readBigData() {
        return bigDataReadService.readBigData();
    }

}
